home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / esc / ConversionDialog$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.9 KB  |  48 lines

  1. package com.extensibility.esc;
  2.  
  3. import com.extensibility.app.UI;
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6. import java.io.File;
  7.  
  8. class ConversionDialog$2 implements ActionListener {
  9.    // $FF: synthetic field
  10.    final ConversionDialog this$0;
  11.  
  12.    public void actionPerformed(ActionEvent var1) {
  13.       if (this.this$0.rbtSamePlace.isSelected()) {
  14.          this.this$0.outDirectory = null;
  15.       } else {
  16.          String var2 = this.this$0.tfdOutputDir.getText().trim();
  17.          File var3 = new File(var2);
  18.          if (!var3.isDirectory() || !var3.exists()) {
  19.             if (!ConversionDialog.access$7000071(this.this$0, this.this$0, String.valueOf(var2).concat(String.valueOf(UI.getString("file.does.not.exist.message"))))) {
  20.                return;
  21.             }
  22.  
  23.             (new File(var2)).mkdirs();
  24.          }
  25.       }
  26.  
  27.       this.this$0.outFlavor = (String)this.this$0.cbxOutputFlavors.getSelectedItem();
  28.       this.this$0.ok = true;
  29.       if (this.this$0.rbtThisProject.isSelected()) {
  30.          this.this$0.outProject = "OUT_THIS_PROJ";
  31.       }
  32.  
  33.       if (this.this$0.rbtNewProject.isSelected()) {
  34.          this.this$0.outProject = "OUT_NEW_PROJ";
  35.       }
  36.  
  37.       if (this.this$0.rbtNoProject.isSelected()) {
  38.          this.this$0.outProject = "OUT_NO_PROJ";
  39.       }
  40.  
  41.       this.this$0.dispose();
  42.    }
  43.  
  44.    ConversionDialog$2(ConversionDialog var1) {
  45.       this.this$0 = var1;
  46.    }
  47. }
  48.